﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnlineBookStore
{
    public class MyPageBase:System.Web.UI.Page
    {
        protected override void OnPreInit(EventArgs e)
        {
            if (Session["Theme"] != null)
                Page.Theme = Session["Theme"] as string;
            else
                Page.Theme = "Default";
            base.OnPreInit(e);
        }
        protected virtual void Page_Load(object sender, EventArgs e)
        {
            Page.Title = SiteMap.CurrentNode.Description;
        }
    }
}
